package com.mali.malibackenduser.mapper;

import com.mali.malibackendmodel.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mali.malibackendmodel.vo.UserVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 132993
* @description 针对表【user(用户)】的数据库操作Mapper
* @createDate 2024-06-17 16:46:20
* @Entity com.mali.malibackendmodel.pojo.User
*/
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT id, username FROM mali_user.user WHERE username LIKE CONCAT('%', #{username}, '%')")
    List<UserVO> selectListByUsername(String username);

}




